<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Video extends CI_Controller {

	public function index() { }

	public function getVideos() {
		$this->load->model('Model_video');
		$cursor = $this->Model_video->getVideos();
		$cursor->sort(array('description' => 1));
		echo json_encode(iterator_to_array($cursor));
	}
}

?>